/// 字符串反转，传入的
fn rev_string(str: &String) -> String {
    str.chars()
        .rev()
        .collect::<Vec<_>>()
        .iter()
        .collect::<String>()
}
fn main() {
    let c = 'R';
    println!("c {}", c);

    let name = "LeeHuajun";

    println!(
        "原字符串：{}，反转后:{}",
        name,
        rev_string(&name.to_string())
    );
    println!("原字符串：{}", name)
}

